Typescript React-css-module

使用awesome-typescript-loader时,react-css-modules出错。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"compilerOptions": {
"outDir": "./build/",
"sourceMap": true,
"noImplicitAny": true,
"module": "es2015", // 为`commonjs`时出错
"target": "es5",
"jsx": "preserve",
"baseUrl": "./",
"paths": {
"utils/*": ["src/utils/*"],
"configs/*": ["src/config/*"]
},
"allowJs": true
},
"include": [
"./src/**/*"
]
}

https://qiita.com/terrierscript/items/56d2cc15f76df50dfee7

https://github.com/s-panferov/awesome-typescript-loader/issues/146#issuecomment-248808206

坚持原创技术分享,您的支持将鼓励我继续创作!